const getters = { //相当于state的计算属性
  username:state => {
        return  state.user.name
    },
  token:state => {
        return state.user.token
  },
  status:state => {
      return state.user.status
  },
  roles:state => {
      return state.user.roles
  }
}

export default getters